package pri.damai.xiaowu.common.core.dict;

import lombok.Data;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 字段服务接口
 *
 * @description
 * @author YangXinFu
 * @date 9:23 2022/7/29
 **/
public interface DictService {

	Map<String, List<DictDTO>> dictInfoMap(List<DictQuery> query);

	@Data
	class DictQuery{
		private String dictType;

		private Collection<String> dictValues;

		public static DictQuery build(String dictType,List<String> dictValues) {
			DictQuery dictQuery = new DictQuery();
			dictQuery.setDictType(dictType);
			dictQuery.setDictValues(dictValues);
			return dictQuery;
		}

	}

}
